<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>类的定义—混合模式</title>
  <script src="./class/User.js"></script>
</head>
<body>
<script>
  let user1 = new User("张三");
  user1.display();

  console.log("......................");
  let  user2 = new User("李兰","女",19);
  user2.display();
  user2.showName();
</script>
</body>
</html>